import 'package:json_annotation/json_annotation.dart';
part 'back_model.g.dart';

// dart run build_runner build --delete-conflicting-outputs
@JsonSerializable()
class BackModel {
  @JsonKey(name: "code")
  String? code;

  @JsonKey(name: "msg")
  String? msg;

  @JsonKey(name: "data")
  dynamic data;

  BackModel({this.code, this.msg, this.data});

  factory BackModel.fromJson(Map<String, dynamic> json) =>
      _$BackModelFromJson(json);

  Map<String, dynamic> toJson() => _$BackModelToJson(this);
}
